﻿#ifndef MAINFORM_H
#define MAINFORM_H

#include <QWidget>
#include "checkthread.h"
#include "public.h"

namespace Ui {
class MainForm;
}

class MainForm : public QWidget
{
    Q_OBJECT

public:
    explicit MainForm(QWidget *parent = 0);
    ~MainForm();

protected:
    void paintEvent(QPaintEvent *);

private:
    void CreateAllChildWnd();
    void InitCtrl();
    void InitSolts();
    void Relayout();
    void UpdateCtrlState();

private slots:
    void OnProgress(ECheckStep eStep, int nProgress);

    void on_pushButton_clicked();

    void on_pushButton_Close_clicked();

    void on_pushButton_copy_clicked();

private:
    Ui::MainForm *ui;

    CheckThread *m_pCheckThread;
    int m_nProgress;
    ECheckStep m_eStep;
};

#endif // MAINFORM_H
